package com.atguigu.springcloud.service;

import cn.hutool.core.util.IdUtil;
import org.springframework.stereotype.Component;

@Component
public class PaymentFallBack implements PaymentService{
    @Override
    public String payment_OK(Integer id) {
        return "消费者调用payment_OK失败，调用id="+id+"随机码:"+ IdUtil.randomUUID();
    }

    @Override
    public String payment_TimeOut(Integer id) {
        return "消费者调用payment_TimeOut失败，调用id="+id+"随机码:"+ IdUtil.randomUUID();
    }
}
